<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>全部分类</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="../untils/flexible.js"></script>
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/contrast.css">
    <script src="../untils/queryString.js"></script>
</head>
<body>
    <div class="header">
        <img class="logo" src="../assets/images/header_logo.png" alt="">
        <img class="app" src="../assets/images/header_app.png" alt="">
    </div>
    <div class="search">
        <input type="text" placeholder="请输入你想比价的商品">
        <button>搜索</button>
    </div>
    <ul class="listUl">

    </ul>

    <div class="foot">
        <div class="more">
            <a href="#">更多优惠信息>></a>
        </div>
        <div class="brand">
            <p>品牌排行</p>
        </div>
        <ul>
            <li>登入</li>
            <li>注册</li>
            <li class="goTop">返回顶部</li>
        </ul>
        <script>
            $(window).scroll(function(){
                let scrollTop=$(window).scrollTop();
            })
            $(".goTop").on("click",function(){
                $("html").animate({
                    scrollTop:0
                },100)
            })
        </script>
        <p id="p1"><span class="span1">手机APP下载 </span> 慢慢买手机版 <span class="span2">--掌上比价平台</span></p>
        <p id="p2">m.manmanbuy.com</p>
    </div>
</body>
<script>
    let listHtml="";
    $.ajax({
        url:"http://chst.vip:1234/api/getcategorytitle",
        type:"get"
    }).then(res=>{
        let{result}=res;
        result.forEach(item=>{
            listHtml+=
            `
            <li class="listLI" titleid="${item.titleId}">${item.title}<span>▼</span></li>
            `
        })
        $(".listUl").html(listHtml);
        
    })



    
    
   
    
    
    
</script>
</html>